export interface DiscussionPost {
  id: string;
  title: string;
  content: string;
  author: {
    id: string;
    name: string;
    role: "admin" | "teacher" | "student";
  };
  course: {
    id: string;
    name: string;
  };
  tags?: string[];
  views: number;
  likes: number;
  replies: DiscussionReply[];
  aiResponse?: boolean;
  createTime: string;
  updateTime?: string;
}

export interface DiscussionReply {
  id: string;
  content: string;
  author: {
    id: string;
    name: string;
    role: "admin" | "teacher" | "student";
  };
  likes: number;
  isAIResponse?: boolean;
  createTime: string;
  updateTime?: string;
}
